package com.xyoto.takeawayBusiness.enums;

/**
 * 商品枚举
 *
 */
public enum ShoppingEnum implements Code {

    SHOPPING_IMG_UPDATE_FAIL(2020, "商品图片上传失败"),
    SHOPPING_SAVE_FAIL(2021, "商品存储失败"),
    SHOP_ERROR(2022, "店铺id错误"),
    SHOPPING_IMG_IS_NULL(2023, "商品图片不能为空"),
    SAVE_SHOPPING_GOODS_FAIL(2024, "商品规格存储失败"),
    SAVE_SHOPPING_ATTRIBUTE_FAIL(2025, "商品属性存储失败"),
    DEL_GOODS_FAIL(2026, "商品规格删除失败"),
    DEL_PROD_FAIL(2027, "商品属性删除失败"),
    UPDATE_SHOPPING_FAIL(2028, "修改商品失败"),
    SHOPPING_ERROR(2029, "商品id错误"),
    UPDATE_GOODS_FAIL(2030, "修改商品规格失败"),
    UPDATE_ATTRIBUTE_FAIL(2031, "修改商品属性失败");

    private int code;
    private String msg;

    ShoppingEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }

}
